//导入request.js请求工具
import request from '@/utils/request.js'

export const getpaths = () => {
  return request.get('/getpaths');
}
export const getpersons = () => {
  return request.get('/getpersons');
}

export const addcheckdayservice = (data) => {
  return request.post('/adddaychecktask', data);
}
export const addcheckregularservice = (data) => {
  return request.post('/addregularchecktask', data);
}

export const getparttaskservice = (data) => {
  return request.post('/tasklist', data);
}

export const getpartusertaskservice = (data) => {
  return request.post('/usertasklist', data);
}

export const updatetaskservice = (data) => {
  return request.post('/taskupdate', data);
}

export const deletetaskservice = (data) => {
  return request.delete('/taskdelete?id=' + data);
}

export const addf1service = (data) => {
  return request.post('/addf1', data);
}
export const addf2service = (data) => {
  return request.post('/addf2', data);
}
export const addf3service = (data) => {
  return request.post('/addf3', data);
}
export const addf4service = (data) => {
  return request.post('/addf4', data);
}

export const finaltask = (data) => {
  return request.put('/finaltask?id=' + data);
}
export const getpathallservice = () => {
  return request.get('/pathnameall');
}
export const getpathbynameservice = (data) => {
  return request.get('/getpathbyname?name=' + data)
}
export const setstlnglatservice = (data) => {
  return request.post('/setstlnglat', data);
}
export const setedlnglatservice = (data) => {
  return request.post('/setedlnglat', data);
}
export const getpartf1service = (data) => {
  return request.post('/f1list', data);
}
export const getpartf2service = (data) => {
  return request.post('/f2list', data);
}
export const getpartf3service = (data) => {
  return request.post('/getClientCome', data);
}
export const getpartf4service = (data) => {
  return request.post('/f4list', data);
}
export const getpartf5service = (data) => {
  return request.post('/f5list', data);
}
export const deletef1service = (data) => {
  return request.delete('/deletef1?id=' + data);
}
export const deletef2service = (data) => {
  return request.delete('/deletef2?id=' + data);
}
export const deletef3service = (data) => {
  return request.delete('/deleteClientCome?id=' + data);
}
export const deletef4service = (data) => {
  return request.delete('/deletef4?id=' + data);
}
export const liqingpavementdamagesheetservice = (data) => {
  return request.post('/liqingpavementdamagesheetlist', data);
}
export const shuinipavementdamagesheetservice = (data) => {
  return request.post('/shuinipavementdamagesheetlist', data);
}


export const getpathlevelallservice = () => {//作业3----------------------------------------
  return request.get('/getAllSelectedCourse');
}
export const getpathlevelallservice2 = () => {
  return request.get('/getAllNonSelectCourse');//作业3----------------------------------------
}

export const getallpathservice = () => {
  return request.get('/getallpath')
}
export const AIadddaycheckservice = (data) => {
  return request.post('/AIadddaycheck', data)
}
export const AIaddregularchecktaskservice = (data) => {
  return request.post('/AIaddregularchecktask', data)
}

export const getquoteservice = (data) => {
  return request.post('/getQuote',data)
}

export const addphaseservice = (contractid, data)=>{
  return request.post('/addPayPhase?contractid='+contractid,data)
}

export const getPayPhasesservice = (data) => {
  return request.post('/getPayPhases',data)
}